package com.example.mapper;

import com.example.pojo.ChatMessage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ChatMessageMapper {
    // 根据 chatId 查询 ChatMessage 列表
    List<ChatMessage> selectByChatId(String chatId);

    // 插入单条 ChatMessage
    void insertChatMessage(ChatMessage chatMessage);
}
